/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 晓星航
 * Date: 2023-02-15
 * Time: 13:14
 */

public class TestDemo {
    String str = new String("good");
    char[] ch = {'a' , 'b' , 'c'};
    public static void main(String[] args) {
        TestDemo testDemo = new TestDemo();
        testDemo.change(testDemo.str,testDemo.ch);
        System.out.print(testDemo.str + " and " + testDemo.ch);
    }
    public void change(String str, char[] ch) {
        str = "test ok";
        ch[0] = 'g';
    }
}
